<!--<?php
require_once template('header'); 
print <<<EOT
<!--右边开始-->
<div id="right">
<div id=mytips style="position:absolute;background-color:#ffffff;width:121;height:16;border:1px solid gray;display:none;filter: progid:dximagetransform.microsoft.shadow(color=#999999,direction=135,strength=3); left:0; top:5"></div>  
	<form name="mvmmall" action="admincp.php?module=member" method="post" enctype="multipart/form-data" onsubmit="javascript: return check_member_form()">
	<input type="hidden" name="action" value="$action" id="action"/>
	<input type="hidden" name="uid" value="$uid"/>
	<input type="hidden" name="setp" value="1"/>
	<table cellpadding="0" cellspacing="1" class="list1">
	
		<tr><th colspan="4">$lang[add_member]</th></tr>
		<tr >
			<td class="td_left">$lang[registration_id]:</td>
			<td width="35%"><input type="text" name="login_id" id="login_id" size="23" maxlength="20" class="text" value="$member_id" /> <a href="#" onclick="javascript: Usercheck('login_id')">$lang[user_check]</a><div id="div_user"></div><input name="temp" type="hidden" id="temp" value=""/></td>
			<td class="td_left">$lang[name]</td>
			<td width="35%"><input type="text" name="name" id="name" size="23" maxlength="20" class="text" value="$member_name" /></td>
		</tr>
		
		<tr >
			<td class="td_left">$lang[password]</td>
			<td><input type="password" name="pass1" id="pass1" size="23" maxlength="20" class="text"  value="$pass1" /> <span class="cpsm">$lang[input_changes]</span></td>
			<td class="td_left">$lang[pwd_confirmation]</td>
			<td><input type="password" name="pass2" id="pass2" size="23" maxlength="20" class="text" value="$pass2" /> <span class="cpsm">$lang[input_changes]</span></td>
		</tr>
		<tr >
		<td class="td_left">$lang[rating]</td>
			<td>
			$grade_select
				</td>
			<td class="td_left">$lang[user_group]</td>
			<td>
			<input type="radio" value="0" name="adminid" $adminid_n/>$lang[general_group]　
			<input type="radio" value="1" name="adminid" $adminid_y />$lang[admin_group]			</td>
		</tr>
		<tr >
			<td class="td_left">$lang[email]</td>
		  <td><input type="text" name="email" id="email" size="23" maxlength="255" class="text" value="$member_email" /> <input type="checkbox" name="automail" value="1" $automail_y/>		    ($lang[notice_email])</td>
			<td class="td_left">$lang[id_number]</td>
			<td><input type="text" name="jumin" id="jumin" size="23" maxlength="18" class="text" value="$jumin" /></td>
		</tr>
		<tr >
			<td class="td_left">$lang[date_birth]</td>
			<td><input type="text" name="birth_yy" id="birth_yy" style="width:54px;" maxlength="4" class="text" value="$birth_yy" /> $lang[user_y]
			  <input type="text" name="birth_mm" id="birth_mm" style="width:32px;" maxlength="2" class="text" value="$birth_mm" /> $lang[user_mm] <input type="text" name="birth_dd" id="birth_dd" style="width:32px;" maxlength="2" class="text" value="$birth_dd" /> $lang[user_dd]</td>
			<td class="td_left">$lang[gender]</td>
			<td><input type="radio" name="sex" value="1" $member_sex_y/> $lang[man] <input type="radio" name="sex" value="0" $member_sex_n/> $lang[women]</td>
		</tr>
		<tr >
			<td class="td_left">$lang[tel]</td>
			<td><input type="text" name="tel1" id="tel1" size="23" maxlength="20" class="text" value="$member_tel1" /></td>
			<td class="td_left">$lang[mobile]</td>
			<td><input type="text" name="tel2" id="tel2" size="23" maxlength="20" class="text"  value="$member_tel2" /></td>
		</tr>
		<tr >
			<td class="td_left">$lang[postal_code]</td>
			<td><input type="text" name="zip1" id="zip1" size="23" maxlength="10" class="text" value="$zip1" /></td>
			<td class="td_left">$lang[address]</td>
			<td>
			<script src="include/javascript/initcity.js"></script>
            <select onchange="initcity();" id="province" name="province">
            <script>creatprovince('$province');</script>
            </select>
           <select id="city" name="city"><script>initcity('$city');</script></select><input type="text" name="address1" id="address1" size="13" maxlength="255" class="text" value="$member_address" /></td>
		</tr>
		<tr >
			<td class="td_left">icq:</td>
			<td><input type="text" name="icq" id="icq" size="23" maxlength="12" class="text" value="$icq" /></td>
			<td class="td_left">YahooID:</td>
			<td><input type="text" name="yahoo" id="yahoo" size="23" maxlength="40" class="text" value="$yahoo" /></td>
		</tr>
		<tr >
			<td class="td_left">qq:</td>
			<td><input type="text" name="qq" id="qq" size="23" maxlength="12" class="text" value="$qq" /></td>
			<td class="td_left">msn:</td>
			<td><input type="text" name="msn" id="msn" size="23" maxlength="40" class="text" value="$msn" /></td>
		</tr>
		<tr >
			<td class="td_left">$lang[home]</td>
			<td><input type="text" name="homepage" id="homepage" size="23" maxlength="255" class="text" value="$member_homepage" /></td>
			<td class="td_left">$lang[taobao]</td>
			<td><input type="text" name="taobao" id="taobao" size="23" maxlength="40" class="text" value="$taobao" /></td>
		</tr>
<!--
EOT;
if ($action=='add') {
print <<<EOT
-->	
		<tr >
			<td class="td_left">$lang[integral]</td>
			<td><input type="text" name="member_point" id="member_point"  size="23" maxlength="20" class="text" value="$member_point" /></td>
			<td class="td_left">$lang[advances]</td>
			<td><input type="text" name="member_money" id="member_money"  size="23" maxlength="20" class="text" value="$member_money" /></td>
		</tr>
<!--
EOT;
}else {
print <<<EOT
-->			
		<tr >
			<td class="td_left">$lang[integral]</td>
			<td>
			$lang[current_credit]: $member_point<br />
			+/- $lang[integral]: <input type="text" name="new_point" id="new_point"  size="8" maxlength="20" class="text"  /> <br />
			+/- $lang[integral_help]: <input type="text" name="new_point_text" id="new_point_text"  size="25" maxlength="20" class="text"  /><br />
			<span class="cpsm">←$lang[integral_msg]</span></td>
			<td class="td_left">$lang[advances]</td>
			<td>
			$lang[advances]: $member_money<br />
			+/- $lang[advances]: <input type="text" name="new_money" id="new_money"  size="8" maxlength="20" class="text" /><br />
			+/- $lang[note_advances]: <input type="text" name="new_money_text" id="new_money_text"  size="23" maxlength="20" class="text" /><br />
			<span class="cpsm">←$lang[advances_msg]</span></td>
		</tr>
<!--
EOT;
}print <<<EOT
-->	
	
		<tr >
			<td class="td_left">$lang[member_head]</td>
			<td><input type="file" name="member_file" id="member_file" size="23" class="text" value="$member_file" /></td>
			<td class="td_left">$lang[recommended]</td>
			<td><input type="text" name="member_recommend" id="member_recommend"  size="23" maxlength="20" class="text" value="$member_recommend" /></td>
		</tr>
		
<!--
EOT;
if ($action=='edit') {
print <<<EOT
-->				
		<tr >
			<td class="td_left">$lang[receiving_address]</td>
			<td colspan="3">
<!--
EOT;
foreach ($rt_address as $key=>$val){
print <<<EOT
-->					
			<p style="padding-bottom:5px;">
			<strong>$val[add_name]</strong><br/>
			<span style="float:left; width:278px;">$lang[name]:$val[consignee]</span>$lang[email]:$val[email]<br/>
			<span style="float:left; width:278px;">$lang[phone_number]:$val[tel]</span>$lang[mobile]:$val[mobile]<br/>
			<span style="float:left; width:278px;">$lang[address]:$val[address]</span>$lang[postal_code]:$val[zipcode]<br/>
			</p>
<!--
EOT;
}print <<<EOT
-->			</td>
		</tr>
<!--
EOT;
}print <<<EOT
-->	
<tr >
			<td class="td_left">$lang[introduction]</td>
			<td><textarea name="intro" id="intro" rows="5"cols="30" class="text">$member_introduction</textarea></td>
			<td class="td_left">$lang[management_notes]</td>
			<td><textarea name="member_admin_memo" id="member_admin_memo" rows="5"cols="30" class="text">$member_admin_memo</textarea></td>
		</tr>
	</table>
	<div id="tfoot"><input type="submit" name="Submit" value="&nbsp;$lang[submit]&nbsp;" onclick="" /> <input type="reset" name="reset" value="&nbsp;$lang[reset]&nbsp;" /></div>
	</form>
</div>
<!--
EOT;
?>-->